libxl: libxl__device_disk_local_attach return a new libxl_device_disk
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 29 May 2012 15:36:46 +0000 (16:36 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 29 May 2012 15:36:46 +0000 (16:36 +0100)
commit6ae77f8afd24bf68a325bbba8a6cf8e09bd4d2ca
treec42e0a1ff5adce5492c2fdd2cb7f4a42f2ad4f6c
parent06c0bc127b521e9cf9f4b9a06e5b1960e38458b6
libxl: libxl__device_disk_local_attach return a new libxl_device_disk

Introduce a new libxl_device_disk* parameter to
libxl__device_disk_local_attach, the parameter is allocated by the
caller. libxl__device_disk_local_attach is going to fill the new disk
with informations about the new locally attached disk.  The new
libxl_device_disk should be passed to libxl__device_disk_local_detach
afterwards.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_bootloader.c
tools/libxl/libxl_internal.h